#include <iostream>
#include <memory>
#include "PollServer.hpp"

using namespace std;

// ./pollServer port
int main(int argc , char* argv[])
{
    if(argc != 2)
    {
        cout << "Usage : " << argv[0] << " port" << endl;
        exit(0); 
    }

    uint16_t localport = stoi(argv[1]);
    unique_ptr<PollServer> svr = make_unique<PollServer>(localport);

    svr->Init();
    svr->Loop();

    return 0;
}
